import Layout from '@/layout'

const blindboxRouter = {
    path: '/blindbox',
    component: Layout,
    redirect: '/blindbox/boxrewardtypelist',
    name: 'BlindBox',
    meta: {
        title: 'blindbox',
        icon: 'tab',
        roles: ['other'] // you can set roles in root nav
    },
    children: [
        // {
        //     path: 'boxrewardtypelist',
        //     component: () => import('@/views/blindbox/boxReward/boxRewardTypeList'),
        //     name: 'BoxRewardTypeList',
        //     meta: {
        //         title: 'boxrewardtypelist',
        //         roles: ['other'] // or you can only set roles in sub nav
        //     }
        // },
        {
            path: 'feedback',
            component: () => import('@/views/blindbox/boxReward/feedbackList'),
            name: 'feedback',
            meta: {
                title: '矿难奖池',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'boxrewardlist',
            component: () => import('@/views/blindbox/boxReward/boxRewardList'),
            name: 'BoxRewardList',
            meta: {
                title: 'boxrewardlist',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'blindboxlist',
            component: () => import('@/views/blindbox/boxList'),
            name: 'BlindBoxList',
            meta: {
                title: 'blinboxlist',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'addboxtx',
            component: () => import('@/views/blindbox/addBoxTX'),
            name: 'AddBoxTX',
            hidden: true,
            meta: {
                title: 'addboxtx',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'addboxwx',
            component: () => import('@/views/blindbox/addBoxWX'),
            name: 'AddBoxWX',
            hidden: true,
            meta: {
                title: 'addboxwx',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'addFeedback',
            component: () => import('@/views/blindbox/addFeedback'),
            name: 'AddFeedback',
            hidden: true,
            meta: {
                title: '新增矿难',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'addtreasurehunt',
            component: () => import('@/views/blindbox/addTreasureHunt'),
            name: 'AddTreasureHunt',
            hidden: true,
            meta: {
                title: 'addtreasurehunt',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
    ]
}

export default blindboxRouter
